import request from "@/utils/request";

// 部门列表
export function deptLists(params?: any) {
  return request.get({ url: "/system/dept/list", params });
}
/**
 * 获取部门列表 树形
 * @param params
 * @returns
 */
export function deptListTree(params?: any) {
  return request.get({ url: "/system/dept/listTree", params });
}

// 添加部门
export function deptAdd(params: any) {
  return request.post({ url: "/system/dept", params });
}

// 编辑部门
export function deptEdit(params: any) {
  return request.post({ url: "/system/dept/edit", params });
}

// 删除部门
export function deptDelete(params: any) {
  return request.post({ url: "/system/dept/del/" + params });
}

// 部门详情
export function deptDetail(params?: any) {
  return request.get({ url: "/system/dept/" + params });
}
